%% Carbon Taxes Around the World: Cooperation, Strategic Interactions, and Spillovers
% IMF Economic Review
% Alessandro Moro and Valerio Nispi Landi
% Replication files
% This file simulates the IRFs

clc;
close all;
clear;

LIN=0;
DAM=0;

%% Baseline policy
console
digamma=0;
digammaz=0;
save digs digamma digammaz

console_final_opt
BASE=1;
saving_path0

%% H optimal, F baseline
if SYM==1
digamma=0.0059;
elseif SYM==0 && LIN==0 && DAM==0
digamma=0.0067;
elseif SYM==0 && LIN==1 && DAM==0
digamma=2.8000e-04;  % Linear tax
elseif SYM==0 && LIN==0 && DAM==1
%digamma=0.0390;  % Higher damage
end
digammaz=0;
save digs digamma digammaz

console_final_opt
BASE=2;
saving_path1

%% both optimal
if SYM==1
digamma=0.0035;
digammaz=0.0035;
elseif SYM==0 && LIN==0 && DAM==0
digamma=0.0035;     
digammaz=0.0028;
elseif SYM==0 && LIN==1 && DAM==0
digamma=0.00016;        
digammaz=0.00015;       
elseif SYM==0 && LIN==0 && DAM==1
digamma=0.013;        
digammaz=0.011;       
end
save digs digamma digammaz
console_final_opt
BASE=0;
saving_path2

plot_trans